<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <title>Invert Filter</title>
   <link rel="stylesheet" type="text/css" href="../../avisynth.css">
</head>
<body >
<h2>
<a NAME="Invert"></a>Invert
</h2>
<p><code>Invert </code>(<var>clip, string "channels"</var>)
<p>Inverts one or many color channels of a clip, available in <em>v2.53</em>.
<p><b>Parameters:</b></p>
<table border="1">
  <tbody>
    <tr>
      <td>channels</td>
      <td>Defines which channels should be inverted. The default is all channels
        of the current colorspace. Valid channels are R,G,B,A for RGB clips, and
        Y,U &amp; V for YUY2 and YV12 clips.</td>
    </tr>
  </tbody>
</table>
<p><b>Example:</b></p>
<pre>AviSource(&quot;clip.avi&quot;)
ConvertToRGB32()
Invert(&quot;BG&quot;)&nbsp; # inverts the blue and green channels</pre>
<p><b>Changelog:</b></p>
<table border="1">
  <tbody>
    <tr>
      <td>v2.53</td>
      <td>Initial Release</td>
    </tr>
    <tr>
      <td>v2.55</td>
      <td>Added RGB24, YUY2 and YV12 mode.</td>
    </tr>
  </tbody>
</table>
<p><kbd>$Date: 2004/04/09 16:58:20 $</kbd></p>
<form><input TYPE="Button" VALUE="Back"
onClick="history.go(-1)"></form>
</body>
</html>
